package org.reborn.utils.script

import scala.tools.nsc.{Interpreter,Settings}
import scala.collection.Iterable

object Script {
  def Run(script:String,boundVariables:Iterable[ScriptBinding[_]]):Unit = {
	
	  
//	var i = new Interpreter(new Settings(str => println(str)))
//	//i.setContextClassLoader()
//	//i.beQuietDuring({
//	  for(bindVariable <- boundVariables){
//	 	i.bind(bindVariable.boundName, "Int", bindVariable.boundVar)
//	  }
//	  i.interpret(script)
//	//})
	  
	
  }
  
}

class ScriptBinding[T:Manifest](var boundVar:T, val boundName:String){
  val man = implicitly[Manifest[T]]
}